package cn.szq.springframework.utils;
/***
 * All rights Reserved, Designed By www.jx-lab.com
 * @Title: ClassUtils
 * @Description:
 * @author lixy
 * @date 2021/8/12 15:42
 * @version V1.0
 * @Copyright: www.jx-lab.com Inc. All rights reserved.
 * 注意：本内容仅限于众合景轩信息技术有限公司内部传阅，禁止外泄以及用于其他的商业目
 */
public class ClassUtils {

    public static ClassLoader getDefaultClassLoader(){
        ClassLoader cl = null;
        try{
            cl =Thread.currentThread().getContextClassLoader();
        }catch (Throwable ex){
        }
        if (cl == null){
            cl =ClassUtils.class.getClassLoader();
        }
        return cl;
    }
}
